package com.enki.cigarettes.enums;

public class AdminEmployeeEnums {
    /**
     * 后台账号类型
     */
    public enum EmpType {

        ADMIN("后台账号", 0), ENTERPRISE("企业账号", 1);
        private String name;
        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        EmpType(String name, int status) {
            this.name = name;
            this.status = status;
        }


        public static String getName(int status) {
            for (EmpType at : EmpType.values()) {
                if (at.getStatus() == status) {
                    return at.getName();
                }
            }
            return "";
        }

    }


}
